/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * pnfReporteDespachoCliente.java
 *
 * Created on 20/10/2011, 12:33:05 AM
 */

package visual.Despacho;

/**
 *
 * @author chokewanka
 */
public class pnfReporteDespachoCliente extends javax.swing.JPanel {

    /** Creates new form pnfReporteDespachoCliente */
    public pnfReporteDespachoCliente() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane2 = new javax.swing.JScrollPane();
        tblPedidos = new javax.swing.JTable();
        btnImprimir = new javax.swing.JButton();
        lblTitulo = new javax.swing.JLabel();
        pnlCliente = new javax.swing.JPanel();
        lblFechaHasta = new javax.swing.JLabel();
        lblFechaDesde = new javax.swing.JLabel();
        lblCliente = new javax.swing.JLabel();
        txtCliente = new javax.swing.JTextField();
        btnBuscarCliente = new javax.swing.JButton();
        txtMontoMin = new javax.swing.JTextField();
        lblProducto = new javax.swing.JLabel();
        lblTipoProducto = new javax.swing.JLabel();
        cbxTipoProducto = new javax.swing.JComboBox();
        btnBuscarProducto = new javax.swing.JButton();
        btnBuscar = new javax.swing.JButton();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        jDateChooser2 = new com.toedter.calendar.JDateChooser();
        lblPedidos = new javax.swing.JLabel();

        setLayout(null);

        tblPedidos.setAutoCreateRowSorter(true);
        tblPedidos.setForeground(new java.awt.Color(0, 0, 0));
        tblPedidos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo pedido", "Fecha pedido", "Cliente", "Monto total"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Object.class, java.lang.String.class, java.lang.Double.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tblPedidos.setColumnSelectionAllowed(true);
        tblPedidos.setGridColor(javax.swing.UIManager.getDefaults().getColor("TableHeader.background"));
        tblPedidos.setMaximumSize(new java.awt.Dimension(800, 72));
        tblPedidos.setMinimumSize(new java.awt.Dimension(200, 72));
        tblPedidos.setSelectionForeground(new java.awt.Color(0, 0, 0));
        tblPedidos.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(tblPedidos);
        tblPedidos.getColumnModel().getSelectionModel().setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);

        add(jScrollPane2);
        jScrollPane2.setBounds(40, 280, 660, 100);

        btnImprimir.setBackground(new java.awt.Color(240, 235, 226));
        btnImprimir.setFont(new java.awt.Font("Dialog", 0, 12));
        btnImprimir.setForeground(new java.awt.Color(0, 0, 0));
        btnImprimir.setText("Imprimir");
        btnImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirActionPerformed(evt);
            }
        });
        add(btnImprimir);
        btnImprimir.setBounds(600, 400, 100, 27);

        lblTitulo.setFont(new java.awt.Font("Dialog", 0, 36));
        lblTitulo.setForeground(new java.awt.Color(0, 0, 0));
        lblTitulo.setText("Reporte de pedidos por cliente");
        add(lblTitulo);
        lblTitulo.setBounds(80, 20, 580, 43);

        pnlCliente.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Búsqueda de pedidos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 14), new java.awt.Color(0, 0, 0))); // NOI18N
        pnlCliente.setLayout(null);

        lblFechaHasta.setFont(new java.awt.Font("Dialog", 0, 12));
        lblFechaHasta.setForeground(new java.awt.Color(0, 0, 0));
        lblFechaHasta.setText("Fecha hasta");
        pnlCliente.add(lblFechaHasta);
        lblFechaHasta.setBounds(10, 120, 78, 15);

        lblFechaDesde.setFont(new java.awt.Font("Dialog", 0, 12));
        lblFechaDesde.setForeground(new java.awt.Color(0, 0, 0));
        lblFechaDesde.setText("Fecha desde");
        pnlCliente.add(lblFechaDesde);
        lblFechaDesde.setBounds(10, 70, 81, 15);

        lblCliente.setFont(new java.awt.Font("Dialog", 0, 12));
        lblCliente.setForeground(new java.awt.Color(0, 0, 0));
        lblCliente.setText("Cliente");
        pnlCliente.add(lblCliente);
        lblCliente.setBounds(10, 30, 43, 15);
        pnlCliente.add(txtCliente);
        txtCliente.setBounds(100, 20, 180, 28);

        btnBuscarCliente.setBackground(new java.awt.Color(240, 235, 226));
        btnBuscarCliente.setFont(new java.awt.Font("Dialog", 0, 12));
        btnBuscarCliente.setForeground(new java.awt.Color(0, 0, 0));
        btnBuscarCliente.setText("...");
        pnlCliente.add(btnBuscarCliente);
        btnBuscarCliente.setBounds(290, 20, 40, 27);
        pnlCliente.add(txtMontoMin);
        txtMontoMin.setBounds(450, 20, 170, 28);

        lblProducto.setFont(new java.awt.Font("Dialog", 0, 12));
        lblProducto.setForeground(new java.awt.Color(0, 0, 0));
        lblProducto.setText("Producto");
        pnlCliente.add(lblProducto);
        lblProducto.setBounds(350, 30, 57, 15);

        lblTipoProducto.setFont(new java.awt.Font("Dialog", 0, 12));
        lblTipoProducto.setForeground(new java.awt.Color(0, 0, 0));
        lblTipoProducto.setText("Tipo producto");
        pnlCliente.add(lblTipoProducto);
        lblTipoProducto.setBounds(350, 70, 87, 15);

        cbxTipoProducto.setFont(new java.awt.Font("DejaVu Sans", 0, 12));
        cbxTipoProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbxTipoProducto.setSelectedItem(null);
        pnlCliente.add(cbxTipoProducto);
        cbxTipoProducto.setBounds(450, 70, 220, 25);

        btnBuscarProducto.setBackground(new java.awt.Color(240, 235, 226));
        btnBuscarProducto.setFont(new java.awt.Font("Dialog", 0, 12));
        btnBuscarProducto.setForeground(new java.awt.Color(0, 0, 0));
        btnBuscarProducto.setText("...");
        btnBuscarProducto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarProductoActionPerformed(evt);
            }
        });
        pnlCliente.add(btnBuscarProducto);
        btnBuscarProducto.setBounds(630, 20, 40, 27);

        btnBuscar.setBackground(new java.awt.Color(240, 235, 226));
        btnBuscar.setFont(new java.awt.Font("Dialog", 0, 12));
        btnBuscar.setForeground(new java.awt.Color(0, 0, 0));
        btnBuscar.setText("Buscar");
        btnBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarActionPerformed(evt);
            }
        });
        pnlCliente.add(btnBuscar);
        btnBuscar.setBounds(570, 120, 100, 27);
        pnlCliente.add(jDateChooser1);
        jDateChooser1.setBounds(100, 70, 230, 28);
        pnlCliente.add(jDateChooser2);
        jDateChooser2.setBounds(100, 120, 230, 28);

        add(pnlCliente);
        pnlCliente.setBounds(20, 70, 690, 170);

        lblPedidos.setFont(new java.awt.Font("Dialog", 0, 14));
        lblPedidos.setForeground(new java.awt.Color(0, 0, 0));
        lblPedidos.setText("Pedidos");
        add(lblPedidos);
        lblPedidos.setBounds(40, 260, 84, 17);
    }// </editor-fold>//GEN-END:initComponents

    private void btnBuscarProductoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarProductoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_btnBuscarProductoActionPerformed

    private void btnImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirActionPerformed

}//GEN-LAST:event_btnImprimirActionPerformed

    private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnBuscarActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnBuscarCliente;
    private javax.swing.JButton btnBuscarProducto;
    private javax.swing.JButton btnImprimir;
    private javax.swing.JComboBox cbxTipoProducto;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private com.toedter.calendar.JDateChooser jDateChooser2;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblCliente;
    private javax.swing.JLabel lblFechaDesde;
    private javax.swing.JLabel lblFechaHasta;
    private javax.swing.JLabel lblPedidos;
    private javax.swing.JLabel lblProducto;
    private javax.swing.JLabel lblTipoProducto;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JPanel pnlCliente;
    private javax.swing.JTable tblPedidos;
    private javax.swing.JTextField txtCliente;
    private javax.swing.JTextField txtMontoMin;
    // End of variables declaration//GEN-END:variables

}
